﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript实现动态改变网页字体大小及关闭网页窗口</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript">
<!--
  function setFontSize(size){
	document.getElementById('bc').style.fontSize=size+'px'
   }
//-->
</script>

</head>
<body>
<div id="bc">
  友情链接：<a href="http://www.taobao.com/" target="_blank">淘宝商城</a>｜<a href="http://www.dangdang.com/" target="_blank">当当网</a>｜<a href="http://www.360buy.com/" target="_blank">京东商城</a>｜<a href="http://www.paipai.com/" target="_blank">拍拍购物</a>｜<a href="http://www.vancl.com/" target="_blank">凡客诚品</a>｜<a href="http://www.redbaby.com.cn/" target="_blank">红孩子商城</a>｜<a href="http://www.gome.com.cn/" target="_blank">国美电器</a>｜<a href="http://www.suning.cn/" target="_blank">苏宁易购</a><br />
  动态改变网页字体大小及其他操作：&nbsp;&nbsp;<a href="javascript:setFontSize(16)">大</a>&nbsp;&nbsp;｜&nbsp;&nbsp; <a href="javascript:setFontSize(14.9)">中</a> &nbsp;&nbsp;｜&nbsp;&nbsp;<a href="javascript:setFontSize(12)" >小</a>&nbsp;&nbsp;｜&nbsp;&nbsp;<a href="javascript:window.close()" >关闭</a>
</div> 
</body>
</html>

